<?php
class ModuleAction extends CommonAction{
	
	public function mod_list(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型管理','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型列表','href'=>U('Module/mod_list'),'separator'=>'',),
		);
		$data['action'] = U('Module/mod_list?action=submit');
		$this->assign('data',$data);	
		$this->display();
	}
	
	public function mod_add(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型管理','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型添加','href'=>U('Module/mod_add'),'separator'=>'',),
		);
		$data['action'] = U('Module/mod_add?action=submit');
		$this->assign('data',$data);	
		$this->display('mod_edit');
	}
	
	public function mod_edit(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型管理','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型修改','href'=>U('Module/mod_edit'),'separator'=>'',),
		);
		$data['action'] = U('Module/mod_edit?action=submit');
		$this->assign('data',$data);	
		$this->display('mod_edit');
	}
	
	public function field_list(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型管理','href'=>'#','separator'=>'>>',),
		     array('text'=>'字段列表','href'=>U('Module/field_list'),'separator'=>'',),
		);
		$data['action'] = U('Module/field_list?action=submit');
		$this->assign('data',$data);	
		$this->display();
	}
	
	public function field_add(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型管理','href'=>'#','separator'=>'>>',),
		     array('text'=>'字段添加','href'=>U('Module/field_add'),'separator'=>'',),
		);
		$data['action'] = U('Module/field_add?action=submit');
		$this->assign('data',$data);	
		$this->display('field_edit');
	}
	
	public function field_edit(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'模型管理','href'=>'#','separator'=>'>>',),
		     array('text'=>'字段添加','href'=>U('Module/field_edit'),'separator'=>'',),
		);
		$data['action'] = U('Module/field_edit?action=submit');
		$this->assign('data',$data);	
		$this->display('field_edit');
	}
}
?>